package lx;


import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class lx {
    public static void main(String[] args) throws IOException, IOException {
        FileOutputStream fos = new FileOutputStream("chen.txt");
        String line = "hellohello";
        byte[] data = line.getBytes(StandardCharsets.UTF_8);
        fos.write(data);
        line = "那好那好";
        data = line.getBytes(StandardCharsets.UTF_8);
        fos.write(data);
        line = "蔡";
        data = line.getBytes(StandardCharsets.UTF_8);
        fos.write(data);
        line = "呵呵哈哈哈";
        data = line.getBytes(StandardCharsets.UTF_8);
        fos.write(data);
        System.out.println("写出完毕");
        fos.close();

    }
}
/*
    //【在这里标注该句代码意义】
    for(int i=0;i<subs.length;i++){

    }

    //【在这里标注该句代码意义】
    File sub = subs[i];

    //【在这里标注该句代码意义】
    BufferedReader br = new BufferedReader(
           new InputStreamReader(
                  new FileInputStream(sub)
           )
    );

    //【在这里标注该句代码意义】
    File[] subs = dir.listFiles(f->f.getName().endsWith(".java"));
 */